package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class CastToType {

    private int beginIndex;
    private int endIndex;
    private Identifier castToTypeIdentifier;

    public CastToType(int beginIndex, Identifier castToTypeIdentifier) {
        this.beginIndex = beginIndex;
        this.endIndex = castToTypeIdentifier.getEndIndex();
        this.castToTypeIdentifier = castToTypeIdentifier;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public Identifier getCastToTypeIdentifier() {
        return castToTypeIdentifier;
    }

}
